package com.yangchao.webflux.damain;

import org.springframework.data.relational.core.mapping.Table;


@Table("persons")
public record Person(Integer id, String name, Integer age) {

    @Override
    public Integer id() {
        return id;
    }

    @Override
    public Integer age() {
        return age;
    }

    @Override
    public String name() {
        return name;
    }
}
